// Tierless
// Copyright © 2010 Alphora
// This file is licensed under a modified BSD-license (see tierless_license.txt).
using System;

namespace Tierless.Framework.Entities
{
	/// <summary>
	/// Represents the possible states for an entity.
	/// </summary>
	[Flags]
	public enum EntityState
	{
		/// <summary>
		/// The entity is unchanged.
		/// </summary>
		Unchanged = 0,

		/// <summary>
		/// The entity is new and has not yet been added to the store.
		/// </summary>
		New = 1,

		/// <summary>
		/// The entity has been modified since it was created, or read from the store.
		/// </summary>
		Modified = 2,

		/// <summary>
		/// The entity is marked to be deleted.
		/// </summary>
		Deleted = 4
	}
}